import random
from ecdsa import SigningKey, NIST384p, VerifyingKey


#生成随机42位的以太坊的私钥

seed = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
sa = []
for i in range(32):
    sa.append(random.choice(seed))
salt = '0x'+''.join(sa)
print(salt)

#生成的私钥使用椭圆曲线算加密法
'''
安装ecdsa并且引进
并且将生成的公钥
'''
vk = SigningKey.generate(curve=NIST384p)
sk = vk.get_verifying_key()

print(vk,sk)